const express = require('express')
const path = require('path')
let app = express()
app.listen(3000, () => {
    console.log('3000ok');
})


app.get("/index", (req, res) => {
    res.sendFile(path.join(__dirname, "./html/index.html"))
})

app.use(express.static(   path.join(__dirname,"./a")  ) )
app.use(express.static(   path.join(__dirname,"./public")  ) )
app.use(express.static(   path.join(__dirname,"./static")  ) )
// 此时都是： http://localhost:3000/css/index.css


app.use("/a", express.static(   path.join(__dirname,"./a")  ) )
app.use("/public", express.static(   path.join(__dirname,"./public")  ) )
app.use("/static", express.static(   path.join(__dirname,"./static")  ) )

// 此时  
// http://localhost:3000/a/css/index.css
// http://localhost:3000/public/css/index.css
// http://localhost:3000/static/css/index.css
